package com.dreem.adapter.interfaceadapter;

/**
 * @program: DesignParrtern
 * @description: 测试类
 * @author: Peng
 * @create: 2021-01-30  12:01
 **/
public class Client {
    public static void main(String[] args){
        new Phone().charging(new AbsAdapter() {
            @Override
            public int voltage5V() {
                int dst = 0;
                if(sourceV == 220){
                    dst = sourceV / 44;
                }
                return dst;
            }
        });
    }
}
